/**
 * Package:com.goldcitynet.server.data;
 * $Id$
 * Copyright(c) 2001-2005 www.afteryuan.com
 */
package com.afteryuan.server.data;

/**
 * Room
 * <p/>
 * <p><a href="Room.java.html"><i>View Source</i></a></p>
 *
 * @author <a href="mailto:afteryuan@afteryuan.com">$Author$</a>
 * @version $Revision$
 */
public class Room {
    public String sceneId;
    public String sceneInstanceId;

    public Room(String sceneId, String sceneInstanceId) {
        this.sceneId = sceneId;
        this.sceneInstanceId = sceneInstanceId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Room room = (Room) o;

        if (sceneId != null ? !sceneId.equals(room.sceneId) : room.sceneId != null) return false;
        if (sceneInstanceId != null ? !sceneInstanceId.equals(room.sceneInstanceId) : room.sceneInstanceId != null)
            return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = sceneId != null ? sceneId.hashCode() : 0;
        result = 31 * result + (sceneInstanceId != null ? sceneInstanceId.hashCode() : 0);
        return result;
    }
}
